home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (C) 1994, Silicon Graphics, Inc.
- * All Rights Reserved.
- *
- * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- * the contents of this file may not be disclosed to third parties, copied or
- * duplicated in any form, in whole or in part, without the prior written
- * permission of Silicon Graphics, Inc.
- *
- * RESTRICTED RIGHTS LEGEND:
- * Use, duplication or disclosure by the Government is subject to restrictions
- * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- * rights reserved under the Copyright Laws of the United States.
- */
- /////////////////////////////////////////////////////////////
- //
- // Source file for Drawwin
- //
- // This file generated by a BuilderXcessory. DO NOT EDIT THIS FILE.
- // TO ADD EXTENSIONS TO THIS CLASS, USE THE BUILDER XCESSORY
- // TO CREATE A SUBCLASS.
- //
- // This class is a user interface "component", as described
- // in "Object-Oriented Programming with C++ and OSF/Motif",
- // by Douglas Young, Prentice Hall, 1992. ISBN 0-13-630252-1
- //
- //
- /////////////////////////////////////////////////////////////
-
-
- #include "Drawwin.h" // Generated header file for this class
- #include <Xm/DrawingA.h>
- #ifndef XmNrow
- #define XmNrow "row"
- #endif
- #ifndef XmNcolumn
- #define XmNcolumn "column"
- #endif
-
-
-
-
-
- // These are default resources for widgets in objects of this class
- // All resources will be prepended by *<name> at instantiation,
- // where <name> is the name of the specific instance, as well as the
- // name of the baseWidget. These are only defaults, and may be overriden
- // in a resource file by providing a more specific resource name
-
- String Drawwin::_defaultDrawwinResources[] = {
- NULL
- };
-
- Drawwin::Drawwin(const char *name, Widget parent) :
- VkComponent(name)
- {
- // Load any class-defaulted resources for this object
-
- setDefaultResources(parent, _defaultDrawwinResources );
-
-
-
- // Create an unmanaged widget as the top of the widget hierarchy
-
- _baseWidget = _drawwin= XtVaCreateWidget ( _name,
- xmDrawingAreaWidgetClass,
- parent,
- NULL);
-
- // install a callback to guard against unexpected widget destruction
-
- installDestroyHandler();
-
- XtAddCallback ( _w,
- XmNexposeCallback,
- &Drawwin::setExposedCallback,
- (XtPointer) this );
-
- XtAddCallback ( _w,
- XmNinputCallback,
- &Drawwin::drawInputCallback,
- (XtPointer) this );
-
-
- }
-
- Drawwin::~Drawwin()
- {
- // Empty Destructor. Base class destroys widgets
- }
-
- const char * Drawwin::className() // classname
- {
- return ("Drawwin");
- }
-
- void Drawwin::drawInputCallback (Widget w, XtPointer clientData, XtPointer callData)
- {
- Drawwin* obj = (Drawwin *) clientData;
-
- obj->drawInput(w, callData);
- }
-
- void Drawwin::setExposedCallback (Widget w, XtPointer clientData, XtPointer callData)
- {
- Drawwin* obj = (Drawwin *) clientData;
-
- obj->setExposed(w, callData);
- }
-
-
-
- void Drawwin::drawInput(Widget, XtPointer)
- {
- // Empty virtual function. Called from drawInputCallback.
- // Derived classes can override.
- }
-
- void Drawwin::setExposed(Widget, XtPointer)
- {
- // Empty virtual function. Called from setExposedCallback.
- // Derived classes can override.
- }
-
-
-
-